package template;

import java.util.Arrays;

public abstract class ArrayPrint {
     protected Integer[] contents;

    public ArrayPrint(Integer[] contents) {
        this.contents = contents;
    }
    public void preView(){
        System.out.println(Arrays.toString(contents));
    }
    protected abstract void sort();
    protected abstract void format();
    public void print(){
        System.out.println("-----------");
        preView();
        sort();
        format();
    }

}
